import request from '@/utils/request'

//获取配置列表
export function getSettingList(data){
    return request({
        url:'/gateway/basics/list',
        method:'post',
        data
    })
}

//获取配置信息
export function getSettingInfo(id){
    return request({
        url:'/gateway/basics/info?id='+id,
        method:'get'
    })
}

//保存配置信息
export function saveSettingInfo(data){
    return request({
        url:'/gateway/basics/save',
        method:'post',
        data
    })
}
//删除配置信息
export function deleteSettingInfo(id){
    return request({
        url:'/gateway/basics/delete?id='+id,
        method:'delete'
    })
}

//发布
export function release(id){
    return request({
        url:'/gateway/basics/release?id='+id,
        method:'post'
    })
}

//刷新缓存
export function refreshCache(){
    return request({
        url:'/gateway/basics/refreshCache',
        method:'get'
    })
}
//排序
export function sort(id,value){
    return request({
        url:'/gateway/basics/sort?id='+id+'&value='+value,
        method:'post'
    })
}